<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TSlideView类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_slide_view.html">TSlideView</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_t_slide_view-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.TSlideView类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TSlideView 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_t_slide_view.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a1834ac04452ec54e4fe42e6b8f8d0789"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slide_view.html#a1834ac04452ec54e4fe42e6b8f8d0789">TSlideView</a> (long nativeObj)</td></tr>
<tr class="separator:a1834ac04452ec54e4fe42e6b8f8d0789"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2fdcda5a39ee75ab1d2b2b00fab2c3c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slide_view.html#ab2fdcda5a39ee75ab1d2b2b00fab2c3c">setAutoPlay</a> (int auto_play)</td></tr>
<tr class="separator:ab2fdcda5a39ee75ab1d2b2b00fab2c3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abcec4054b8f1e4613122a47e2270a47e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slide_view.html#abcec4054b8f1e4613122a47e2270a47e">setActive</a> (int index)</td></tr>
<tr class="separator:abcec4054b8f1e4613122a47e2270a47e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad628a4d128cab9eb437e39db9e79bc84"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slide_view.html#ad628a4d128cab9eb437e39db9e79bc84">setVertical</a> (boolean vertical)</td></tr>
<tr class="separator:ad628a4d128cab9eb437e39db9e79bc84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54c75109be13cf39553fc878ec40b91e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slide_view.html#a54c75109be13cf39553fc878ec40b91e">setAnimHint</a> (String anim_hint)</td></tr>
<tr class="separator:a54c75109be13cf39553fc878ec40b91e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5d8e992c8b46912fbc36e3d0f65dcb7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slide_view.html#ad5d8e992c8b46912fbc36e3d0f65dcb7">setLoop</a> (boolean loop)</td></tr>
<tr class="separator:ad5d8e992c8b46912fbc36e3d0f65dcb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7623019e13a38c113f3ad37a6191026"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slide_view.html#ac7623019e13a38c113f3ad37a6191026">getVertical</a> ()</td></tr>
<tr class="separator:ac7623019e13a38c113f3ad37a6191026"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeeae27a5466cc9c88358e4096d3089c2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slide_view.html#aeeae27a5466cc9c88358e4096d3089c2">getAutoPlay</a> ()</td></tr>
<tr class="separator:aeeae27a5466cc9c88358e4096d3089c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd5910a057376f5a8aa7cf0dfaec16f1"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slide_view.html#acd5910a057376f5a8aa7cf0dfaec16f1">getLoop</a> ()</td></tr>
<tr class="separator:acd5910a057376f5a8aa7cf0dfaec16f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac02d9fbf864f4a073a9cab916cb82e3"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slide_view.html#aac02d9fbf864f4a073a9cab916cb82e3">getAnimHint</a> ()</td></tr>
<tr class="separator:aac02d9fbf864f4a073a9cab916cb82e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a892a5401a95b6a0f8676ea9b7b4c2d7c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_slide_view.html">TSlideView</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slide_view.html#a892a5401a95b6a0f8676ea9b7b4c2d7c">cast</a> (long nativeObj)</td></tr>
<tr class="separator:a892a5401a95b6a0f8676ea9b7b4c2d7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0dd6e12952a3a0c5379e4763ef46c01"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slide_view.html#ac0dd6e12952a3a0c5379e4763ef46c01">create</a> (TWidget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:ac0dd6e12952a3a0c5379e4763ef46c01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bcf1d0235e6aa2437bf18d7bda4bd38"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_slide_view.html">TSlideView</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_slide_view.html#a3bcf1d0235e6aa2437bf18d7bda4bd38">cast</a> (TWidget widget)</td></tr>
<tr class="separator:a3bcf1d0235e6aa2437bf18d7bda4bd38"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>滑动视图。</p>
<p>滑动视图可以管理多个页面，并通过滑动来切换当前页面。也可以管理多张图片，让它们自动切换。</p>
<p>slide_view_t是widget\_t的子类控件，widget_t的函数均适用于slide_view_t控件。</p>
<p>在xml中使用"slide\_view"标签创建滑动视图控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">slide_view</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">style</span>=<span class="stringliteral">&quot;dot&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">view</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">children_layout</span>=<span class="stringliteral">&quot;default(w=60,h=60,m=5,s=10)&quot;</span>&gt;</div>
<div class="line">*...</div>
<div class="line">*&lt;/<span class="keywordtype">view</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">view</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">children_layout</span>=<span class="stringliteral">&quot;default(w=60,h=60,m=5,s=10)&quot;</span>&gt;</div>
<div class="line">*...</div>
<div class="line">*&lt;/<span class="keywordtype">view</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">slide_view</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考：[slide_view.xml]( </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/slide_view.xml">https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/slide_view.xml</a>)</p>
<p>在c代码中使用函数slide_view_create创建滑动视图控件。如：</p>
<blockquote class="doxtable">
<p>完整示例请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/slide_view.c">slide_view demo</a></p>
<p>可用通过style来设置控件的显示风格，如背景颜色和指示器的图标等等。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;dot&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span>  <span class="keyword">icon</span>=<span class="stringliteral">&quot;dot&quot;</span> <span class="keyword">active_icon</span>=<span class="stringliteral">&quot;active_dot&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>如果希望背景图片跟随滚动，请将背景图片设置到页面上，否则设置到slide_view上。 </p>
</blockquote>
<blockquote class="doxtable">
<p>更多用法请参考：[theme default]( </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml#L458">https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml#L458</a>) </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a1834ac04452ec54e4fe42e6b8f8d0789"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1834ac04452ec54e4fe42e6b8f8d0789">&#9670;&nbsp;</a></span>TSlideView()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TSlideView.TSlideView </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a892a5401a95b6a0f8676ea9b7b4c2d7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a892a5401a95b6a0f8676ea9b7b4c2d7c">&#9670;&nbsp;</a></span>cast() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_slide_view.html">TSlideView</a> awtk.TSlideView.cast </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<a id="a3bcf1d0235e6aa2437bf18d7bda4bd38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3bcf1d0235e6aa2437bf18d7bda4bd38">&#9670;&nbsp;</a></span>cast() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_slide_view.html">TSlideView</a> awtk.TSlideView.cast </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为slide_view对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>slide_view对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>slide_view对象。 </dd></dl>

</div>
</div>
<a id="ac0dd6e12952a3a0c5379e4763ef46c01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0dd6e12952a3a0c5379e4763ef46c01">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static TWidget awtk.TSlideView.create </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建slide_view对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="aac02d9fbf864f4a073a9cab916cb82e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac02d9fbf864f4a073a9cab916cb82e3">&#9670;&nbsp;</a></span>getAnimHint()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TSlideView.getAnimHint </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>页面切换效果。 </p>

</div>
</div>
<a id="aeeae27a5466cc9c88358e4096d3089c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeeae27a5466cc9c88358e4096d3089c2">&#9670;&nbsp;</a></span>getAutoPlay()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TSlideView.getAutoPlay </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>自动播放。0表示禁止自动播放，非0表示自动播放时每一页播放的时间。 </p>

</div>
</div>
<a id="acd5910a057376f5a8aa7cf0dfaec16f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd5910a057376f5a8aa7cf0dfaec16f1">&#9670;&nbsp;</a></span>getLoop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TSlideView.getLoop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>循环切换模式。</p>
<p>向后切换：切换到最后一页时，再往后切换就到第一页。 向前切换：切换到第一页时，再往前切换就到最后一页。 </p>

</div>
</div>
<a id="ac7623019e13a38c113f3ad37a6191026"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7623019e13a38c113f3ad37a6191026">&#9670;&nbsp;</a></span>getVertical()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TSlideView.getVertical </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否为上下滑动模式。 </p>

</div>
</div>
<a id="abcec4054b8f1e4613122a47e2270a47e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abcec4054b8f1e4613122a47e2270a47e">&#9670;&nbsp;</a></span>setActive()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSlideView.setActive </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置当前页的序号。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>当前页的序号。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a54c75109be13cf39553fc878ec40b91e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54c75109be13cf39553fc878ec40b91e">&#9670;&nbsp;</a></span>setAnimHint()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSlideView.setAnimHint </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>anim_hint</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置页面切换动画。</p>
<p>anim_hint取值如下：</p>
<p>"translate"：平移。 "overlap"：覆盖。 "overlap\_with\_alpha"：覆盖并改变透明度。</p>
<blockquote class="doxtable">
<p>使用"overlap"或"overlap\_with\_alpha"动画时，背景图片最好指定到page上。</p>
<p>使用"overlap\_with\_alpha"动画时，slideview的背景设置为黑色， 或slideview的背景设置为透明，窗口的背景设置为黑色，以获得更好的视觉效果和性能。 </p>
</blockquote>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">anim_hint</td><td>页面切换动画。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ab2fdcda5a39ee75ab1d2b2b00fab2c3c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2fdcda5a39ee75ab1d2b2b00fab2c3c">&#9670;&nbsp;</a></span>setAutoPlay()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSlideView.setAutoPlay </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>auto_play</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置为自动播放模式。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">auto_play</td><td>0表示禁止自动播放，非0表示自动播放时每一页播放的时间。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad5d8e992c8b46912fbc36e3d0f65dcb7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5d8e992c8b46912fbc36e3d0f65dcb7">&#9670;&nbsp;</a></span>setLoop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSlideView.setLoop </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>loop</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置循环切换模式。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">loop</td><td>是否启用循环切换模式。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad628a4d128cab9eb437e39db9e79bc84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad628a4d128cab9eb437e39db9e79bc84">&#9670;&nbsp;</a></span>setVertical()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSlideView.setVertical </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>vertical</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置为上下滑动(缺省为左右滑动)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">vertical</td><td>TRUE表示上下滑动，FALSE表示左右滑动。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/TSlideView.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
